<!DOCTYPE html>
<html>
<head>
	<title>首页</title>
	<script src="lib/jquery.min.js"></script>
	<script src="lib/jquery.waitforimages.min.js"></script>
	<style type="text/css">
		@import url("https://fonts.googleapis.com/css?family=Raleway");

$defaultSeconds: 3s;

body {
	margin:0;
	padding:0;
	font-family: "Raleway", sans-serif;
}
.flex-container {
	z-index: 1;
	position: absolute;
	height: 100vh;
	width: 100%;
	display: -webkit-flex; /* Safari */
	display: flex;
	overflow: hidden;
	@media screen and (max-width: 768px) {
		flex-direction: column;
	}
}
.flex-title {
	color: #f1f1f1;
	position: relative;
	font-size: 3.5vw;
	margin: auto;
	margin-bottom: 100px;
	text-align: center;
	transform: rotate(90deg);
	top: 15%;
	-webkit-transition: all 500ms ease;
	-moz-transition: all 500ms ease;
	-ms-transition: all 500ms ease;
	-o-transition: all 500ms ease;
	transition: all 500ms ease;
	@media screen and (max-width: 768px) {
		transform: rotate(0deg) !important;
	}
}
.flex-about {
	opacity: 0;
	color: #f1f1f1;
	position: relative;
	width: 70%;
	font-size: 1.3vw;
	padding: 5%;
	top: 20%;
	border: 2px solid #f1f1f1;
	border-radius: 10px;
	line-height: 2;
	margin: auto;
	text-align: left;
	transform: rotate(0deg);
	-webkit-transition: all 500ms ease;
	-moz-transition: all 500ms ease;
	-ms-transition: all 500ms ease;
	-o-transition: all 500ms ease;
	transition: all 500ms ease;
	@media screen and (max-width: 768px) {
		padding: 0%;
		border: 0px solid #f1f1f1;
	}
}

.flex-slide {
	-webkit-flex: 1; /* Safari 6.1+ */
	-ms-flex: 1; /* IE 10 */
	flex: 1;
	cursor: pointer;
	-webkit-transition: all 500ms ease;
	-moz-transition: all 500ms ease;
	-ms-transition: all 500ms ease;
	-o-transition: all 500ms ease;
	transition: all 500ms ease;
	@media screen and (max-width: 768px) {
		overflow: auto;
		overflow-x: hidden;
	}
}
.flex-slide p {
	@media screen and (max-width: 768px) {
		font-size: 2em;
	}
}
.flex-slide ul li {
	@media screen and (max-width: 768px) {
		font-size: 2em;
	}
}
.flex-slide:hover {
	-webkit-flex-grow: 3;
	flex-grow: 3;
}
.home {
	height: 100vh;
	background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
		url(https://tse1-mm.cn.bing.net/th/id/R-C.8321fd7ead2928519b1eb6a96f4c6077?rik=o0NxQLlVyT2vMQ&riu=http%3a%2f%2fwww.desktx.com%2fd%2ffile%2fwallpaper%2fanimals%2f20170425%2f66b16507905cfc2aa162bf37733db740.jpg&ehk=ixfxJKaPT6t5c6Wiy4TATfBk3bZO0dPNJooIthpHS%2bE%3d&risl=&pid=ImgRaw&r=0);
	/*替换图片：https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fblog%2F201512%2F20%2F20151220213947_QnicL.jpeg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1643355318&t=4b43fceed8f091e6e6bdf593338b1d7c*/
	background-size: 70%;
	background-position: -280px center;
	background-attachment: fixed;

	@media screen and (min-width: 768px) {
		animation: aboutFlexSlide $defaultSeconds 1;
		animation-delay: 0s;
	}
}

@keyframes aboutFlexSlide {
	0% {
		-webkit-flex-grow: 1;
		flex-grow: 1;
	}
	50% {
		-webkit-flex-grow: 3;
		flex-grow: 3;
	}
	100% {
		-webkit-flex-grow: 1;
		flex-grow: 1;
	}
}

.flex-title-home {
	@media screen and (min-width: 768px) {
		transform: rotate(90deg);
		top: 15%;
		animation: aboutFlexSlide $defaultSeconds 1;
		animation-delay: 0s;
	}
}

@keyframes homeFlextitle {
	0% {
		transform: rotate(90deg);
		top: 15%;
	}
	50% {
		transform: rotate(0deg);
		top: 15%;
	}
	100% {
		transform: rotate(90deg);
		top: 15%;
	}
}

.flex-about-home {
	opacity: 0;
	@media screen and (min-width: 768px) {
		animation: aboutFlexSlide $defaultSeconds 1;
		animation-delay: 0s;
	}
}

@keyframes flexAboutHome {
	0% {
		opacity: 0;
	}
	50% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

.about {
	background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
		url(https://www.pet52.com/uploads/20200611/wae56ec8c6cc72df53653d83a9622a374a.jpg);
	background-size: 80%;
	background-position: -60px center;
	background-attachment: fixed;
}
.contact-form {
	width: 100%;
}
input {
	width: 100%;
}
textarea {
	width: 100%;
}
.contact {
	background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
		url(https://tse1-mm.cn.bing.net/th/id/R-C.d474680bbf54fe9f6316351bb813e677?rik=sLhMK64Q9%2b0N9Q&riu=http%3a%2f%2fimg.mm4000.com%2ffile%2fe%2fcd%2fa477217d46_1044.jpg&ehk=6lMolfM6nx7mHtjqEynjQKmbO0i3OmMPr8AyQHZt8mg%3d&risl=&pid=ImgRaw&r=0);
	background-size: 75%;
	background-position: 580px center;
	background-attachment: fixed;
}
.work {
	background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
		url(https://tse1-mm.cn.bing.net/th/id/R-C.6dd3c6f069750fcd94cf52af73ca4451?rik=e%2b1SOTKcF1V1PA&riu=http%3a%2f%2fwww.wallcoo.com%2fanimal%2fPersian_Cat%2fmxxx01%2f%5bwallcoo.com%5d_Persian_Cat_picture_80599.jpg&ehk=iI8TVZXZTeovIg90tCxQ%2fT9h9ACF6phSgmGy07Xf7YA%3d&risl=&pid=ImgRaw&r=0);
	background-size: 80%;
	background-position: 300px center;
	background-attachment: fixed;
}

// Preloader
.spinner {
	position: fixed;
	top: 0;
	left: 0;
	background: #222;
	height: 100%;
	width: 100%;
	z-index: 11;
	margin-top: 0;
	color: #fff;
	font-size: 1em;
}

.cube1,
.cube2 {
	background-color: #fff;
	width: 15px;
	height: 15px;
	position: absolute;
	top: 0;
	left: 0;

	-webkit-animation: sk-cubemove 1.8s infinite ease-in-out;
	animation: sk-cubemove 1.8s infinite ease-in-out;
}

.cube2 {
	-webkit-animation-delay: -0.9s;
	animation-delay: -0.9s;
}

@-webkit-keyframes sk-cubemove {
	25% {
		-webkit-transform: translateX(42px) rotate(-90deg) scale(0.5);
	}
	50% {
		-webkit-transform: translateX(42px) translateY(42px) rotate(-180deg);
	}
	75% {
		-webkit-transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);
	}
	100% {
		-webkit-transform: rotate(-360deg);
	}
}

@keyframes sk-cubemove {
	25% {
		transform: translateX(42px) rotate(-90deg) scale(0.5);
		-webkit-transform: translateX(42px) rotate(-90deg) scale(0.5);
	}
	50% {
		transform: translateX(42px) translateY(42px) rotate(-179deg);
		-webkit-transform: translateX(42px) translateY(42px) rotate(-179deg);
	}
	50.1% {
		transform: translateX(42px) translateY(42px) rotate(-180deg);
		-webkit-transform: translateX(42px) translateY(42px) rotate(-180deg);
	}
	75% {
		transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);
		-webkit-transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);
	}
	100% {
		transform: rotate(-360deg);
		-webkit-transform: rotate(-360deg);
	}
}
button {
  color: var(--color);
  transition: 0.25s;
}
button:hover, button:focus {
  border-color: var(--hover);
  color: #fff;
}
button {
  z-index: 100;
  background: none;
  border: 3px solid;
  border-radius: 25px;
  font: inherit;
  line-height: 1;
  margin: 0.5em;
  padding: 1em 2em;
}
		.raise {
			--color: #EF7F7D;
			--hover: #e5ff60;
		}
		.raise:hover,
		.raise:focus {
			box-shadow: 0 0.5em 0.5em -0.4em var(--hover);
			transform: translateY(-0.25em);
		}
	</style>
</head>
<body>
	<div style="display: flex;z-index: 99;justify-content: center;background-color: black;">
	<button class="raise" onclick="game()">进入测试小游戏</button>
	<button class="raise" onclick="back()">退出网站</button>
</div>
<div class="flex-container">
	<div class="spinner">
		<p>
		<div class="cube1"></div>
		<div class="cube2"></div>
		加载中...
		</p>
	</div>
	<div class="flex-slide home">
		<div class="flex-title flex-title-home">布偶</div>
		<div class="flex-about flex-about-home" onclick="cat1()">
			<p>点击此处和“猫大胆”小布一起玩耍~</p>
			<ul>
				<li>分布于欧美地区</li>
				<li>别名布娃娃猫、仙女猫、布拉多尔猫</li>
				<li>拉丁学名Ragdoll</li>
			</ul>
		</div>
	</div>
	<div class="flex-slide about">
		<div class="flex-title">英短</div>
		<div class="flex-about" onclick="cat2()">
			<p>点击此处和“土豪金招财猫”say hi~</p>
			<ul>
				<li>分布于世界各地</li>
				<li>别名异国短尾猫</li>
				<li>拉丁学名Felinae</li>
			</ul>
		</div>
	</div>
	<div class="flex-slide work">
		<div class="flex-title">波斯猫</div>
		<div class="flex-about" onclick="cat3()">
			<p>点击此处和“猫中王子”小波玩逗猫棒~</p>
			<ul>
				<li>起源于阿富汗、土耳其</li>
				<li>别名波丝、喜马拉雅</li>
				<li>拉丁学名Persian</li>
			</ul>
		</div>
	</div>
	<div class="flex-slide contact">
		<div class="flex-title">橘猫</div>
		<div class="flex-about" onclick="cat4()">
			<p>点击此处和“大胖橘”小狸一起吃小鱼干~</p>
			<ul>
				<li>分布于除南极洲外全世界范围</li>
				<li>别名为橘子猫、桔猫</li>
				<li>拉丁学名Felis silvestris catus</li>
			</ul>
		</div>
	</div>
</div>
</body>
</html>
<!-- 页面连接处 -->
<script type="text/javascript">
	function cat1(){
		window.open('./cat1.html')
	}
function cat2(){
	window.open('./cat2.html')
}
function cat3(){
	window.open('./cat3.html')
}
function cat4(){
	window.open('./cat4.html')
}
function game(){
	window.open('./3.html')
}
function back(){
	window.open('./1.html')
}
(function () {
	$(".flex-container").waitForImages(
		function () {
			$(".spinner").fadeOut();
		},
		$.noop,
		true
	);

	$(".flex-slide").each(function () {
		$(this).hover(
			function () {
				$(this).find(".flex-title").css({
					transform: "rotate(0deg)",
					top: "10%"
				});
				$(this).find(".flex-about").css({
					opacity: "1"
				});
			},
			function () {
				$(this).find(".flex-title").css({
					transform: "rotate(90deg)",
					top: "15%"
				});
				$(this).find(".flex-about").css({
					opacity: "0"
				});
			}
		);
	});
})();
</script>